//
//  NSURLSessionTask+DownLoadItem.m
//  LBXKit
//
//  Created by lbx on 2017/11/6.
//  Copyright © 2017年 lbx. All rights reserved.
//

#import "NSURLSessionTask+LBXDownLoadItem.h"
#import <objc/runtime.h>

@implementation NSURLSessionTask (LBXDownLoadItem)

- (LBXDownLoadItem*)lbx_downLoadItem
{
    return objc_getAssociatedObject(self, @selector(lbx_downLoadItem));
}

- (void)setLbx_downLoadItem:(LBXDownLoadItem *)lbx_downLoadItem
{    
    objc_setAssociatedObject(self, @selector(lbx_downLoadItem), lbx_downLoadItem, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
}

@end
